"use strict"

const express=require("express");

const videoRouter=express.Router();
const videoCtrl=require("../controller/videoController.js");
videoRouter.get("/list",videoCtrl.videoPage);
//增加列表展示
videoRouter.get("/add",videoCtrl.add);
//点击增加内容保存
videoRouter.post("/add",videoCtrl.addpage);
//编辑页面
videoRouter.get("/edit/:vid",videoCtrl.editor);
//提交编辑
videoRouter.post("/edit/:vid",videoCtrl.editorpage);
//删除
videoRouter.get("/delete/:vid",videoCtrl.delete);
//将路由暴露出去
module.exports=videoRouter;
